﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Caviar.SharedKernel.Entities.IM
{
    public class UserGroupTopic : SysUseEntity
    {
        /// <summary>
        /// 用户
        /// </summary>
        public User User { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 用户所有群
        /// </summary>
        public UserGroup UserGroup { get; set; }

        /// <summary>
        /// 用户所有群ID
        /// </summary>
        public int UserGroupId { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public Topic Topic { get; set; }

        /// <summary>
        /// 主题ID
        /// </summary>
        public int TopicId { get; set; }

        /// <summary>
        /// 订阅主题
        /// </summary>
        public string Subscribe { get; set; }

        /// <summary>
        /// 发布主题
        /// </summary>
        public string Publish { get; set; }

        /// <summary>
        /// 取消订阅
        /// </summary>
        public bool IsUnsubscribe { get; set; }

        /// <summary>
        /// 取消发布
        /// </summary>
        public bool IsUnpublish { get; set; }
    }
}
